﻿using System;
using System.Collections.Generic;
using Co9320.NamaAlert.Model;
using System.Linq;

namespace Co9320.NamaAlert.Model
{
	/// <summary>
	/// UserTagの取得完了時に発生するイベントで利用されるEventArgs
	/// </summary>
	public class TagsChangedEventArgs:EventArgs
	{
		/// <summary>
		/// Ctor
		/// </summary>
		/// <param name="StationId">StationID</param>
		/// <param name="Caster">Caster</param>
		/// <param name="Tags">Tags</param>
		public TagsChangedEventArgs(string StationId, string Caster, IList<TagModel> Tags)
		{
			if (StationId == null)
			{
				this.StationId = "";
			}
			else
			{
				this.StationId = StationId;
			}

			if (Caster == null)
			{
				this.Caster = "";
			}
			else
			{
				this.Caster = Caster;
			}

			if (Tags == null)
			{
				this.Tags = new List<TagModel>();
			}
			else
			{
				this.Tags = Tags;
			}


		}

		/// <summary>
		/// Casterを取得します｡
		/// </summary>
		public string Caster
		{
			get;
			private set;
		}

		/// <summary>
		/// StationIdを取得します｡
		/// </summary>
		public string StationId
		{
			get;
			private set;
		}


		/// <summary>
		/// Tagのリストを取得します｡
		/// </summary>
		public IList<TagModel> Tags
		{
			get;
			private set;
		}
	}
}
